<?php

// +----------------------------------------------------------------------
// | 热门活动模型
// +----------------------------------------------------------------------

namespace Home\Model;

use Common\Model\Model;

class ActivityModel extends Model {


    /**
     * 热门活动推荐
     * @param $num
     * @return mixed
     */
    public function activitytj($num){
        $data=$this->where(array('iftj'=>true,'status'=>true))->field('id,title,image,summary,linkurl')->order('sort DESC')->limit($num)->select();
        return $data;
    }

}
